package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);
    void save(Employee employeeId, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    PageResult<Employee> query(QueryObject qo);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
   Employee login(String username, String password);

    Employee updatePwd(Long id, String newPassword);

    Employee resetPwd(Long id, String newPassword);
}
